import matplotlib.pyplot as plt
score = [107,77,12,13,54,98,75,65,12,35,147,258,369,963,852,741,123,456,789,987,654,321,52,414,63,967,47,85]
plt.rcParams['font.sans-serif']=['SimHei']
plt.xlabel('分数')
plt.ylabel('学生数量')
plt.title('学生语文成绩分布直方图')
plt.hist(score,bins=range(0,150,10),facecolor='red',edgecolor='black')
plt.show()